package xing.example.editor;

import xing.example.bean.A;

import java.beans.PropertyEditorSupport;

/**
 * @author xing
 * @date 2023/2/15 17:15:25
 */
public class AEditor extends PropertyEditorSupport {
    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        int i = Integer.parseInt(text);
        A a = new A(i);
        setValue(a);
    }
}
